<template>
  <view class="center">
    <!-- #ifdef APP-PLUS || MP -->
    <app-plus-bar />
    <!-- #endif -->
    <view class="centerTOP">
      <view class="logo">
        <view class="centLogo leftLogo">
          <text>成长轨迹</text>
          <uni-icon type="arrowdown" color="#fff" size="22"/>
        </view>
        <image class="logo-img" :src="login ? uerInfo.avatarUrl :avatarUrl"></image>
        <view class="centLogo rightLogo">
          <uni-icon type="compose" color="#fff" size="22"/>
          <text>基本资料</text>
        </view>
      </view>
      <view class="userInfo">
        <view class="nickname">某某某</view>
        <view class="signature">哈哈哈哈哈哈哈哈哈哈或或或或或或或或</view>
      </view>
    </view>
    <view class="meBar">
      <view class="every myClass">
        <uni-icon type="compose" color="#0AAFFF" size="24"/>
        <text class='everyText'>每日签到</text>
      </view>
      <view class="myClass">
        <uni-icon type="arrowdown" color="#0AAFFF" size="24"/>
        <text class='everyText'>我的客堂</text>
      </view>
    </view>
    <view class="center-list">
      <view class="center-list-item border-bottom">
        <text class="list-icon">&#xe60f;</text>
        <text class="list-text">我的优惠券</text>
        <text class="navigat-arrow">&#xe65e;</text>
      </view>
      <view class="center-list-item">
        <text class="list-icon">&#xe639;</text>
        <text class="list-text">我的返现</text>
        <text class="navigat-arrow">&#xe65e;</text>
      </view>
    </view>
    <view class="center-list">
      <view class="center-list-item border-bottom">
        <text class="list-icon">&#xe60b;</text>
        <text class="list-text">学习课程进度表</text>
        <text class="navigat-arrow">&#xe65e;</text>
      </view>
      <view class="center-list-item border-bottom">
        <text class="list-icon">&#xe65f;</text>
        <text class="list-text">我的订单</text>
        <text class="navigat-arrow">&#xe65e;</text>
      </view>
      <view class="center-list-item">
        <text class="list-icon">&#xe65f;</text>
        <text class="list-text">我的收藏</text>
        <text class="navigat-arrow">&#xe65e;</text>
      </view>
    </view>
    <view class="center-list">
      <view class="center-list-item border-bottom">
        <text class="list-icon">&#xe614;</text>
        <text class="list-text">消息&回答</text>
        <text class="navigat-arrow">&#xe65e;</text>
      </view>
      <view class="center-list-item border-bottom">
        <text class="list-icon">&#xe614;</text>
        <text class="list-text">我的评论</text>
        <text class="navigat-arrow">&#xe65e;</text>
      </view>
      <view class="center-list-item">
        <text class="list-icon">&#xe614;</text>
        <text class="list-text">历史记录</text>
        <text class="navigat-arrow">&#xe65e;</text>
      </view>
    </view>
  </view>
</template>

<script>
  import uniIcon from '@/components/uni-icon/uni-icon.vue'
  import appPlusBar from '@/components/appPlusBar.vue'
  export default {
    components: {
      uniIcon,
      appPlusBar
    },
    data() {
      return {
        login:false,
        avatarUrl: "../../static/image/logo.png",
        uerInfo: {}
      }
    },
    methods: {}
  }
</script>

<style scoped lang=scss>
  @font-face {
    font-family: texticons;
    font-weight: normal;
    font-style: normal;
    src: url('https://at.alicdn.com/t/font_984210_5cs13ndgqsn.ttf') format('truetype');
  }

  page,
  view {
    display: flex;
  }

  page {
    background-color: #f8f8f8;
  }

  .center {
    flex-direction: column;
    font-size: 28upx;
    color: #fff;
  }

  .centerTOP {
    width: 750upx;
    height: 380upx;
    background-color: #0AAFFF;
    flex-direction: column;
    align-items: center;
    padding: 80upx 0 40upx 0;

    .logo {
      width: 100%;
      align-items: center;
      justify-content: space-between;


      .logo-img {
        width: 150upx;
        height: 150upx;
        border-radius: 150upx;
      }

      .centLogo {
        height: 60upx;
        padding: 0 10upx;
        background: rgba(0, 0, 0, 0.2);
        display: flex;
        justify-content: center;
        align-items: center;
      }

      .leftLogo {
        border-radius: 0 20upx 20upx 0;
      }

      .rightLogo {
        border-radius: 20upx 0 0 20upx;
      }
    }

    .userInfo {
      flex-direction: column;
      align-items: center;

      .nickname {
        margin: 16upx 0;
      }
    }

  }

  .meBar {
    display: flex;
    height: 88upx;
    background: #fff;
    color: #555;
    padding: 16upx 0;

    .every {
      border-right: 1px solid #c8c7cc;
    }

    .myClass {
      flex: 1;
      justify-content: center;
      align-items: center;
      .everyText {
        margin-left: 40upx;
      }
    }
  }


  .center-list {
    background-color: #FFFFFF;
    margin-top: 20upx;
    width: 750upx;
    flex-direction: column;
  }

  .center-list-item {
    height: 90upx;
    width: 750upx;
    box-sizing: border-box;
    flex-direction: row;
    padding: 0upx 20upx;
  }

  .border-bottom {
    border-bottom-width: 1upx;
    border-color: #f8f8f8;
    border-bottom-style: solid;
  }

  .list-icon {
    width: 40upx;
    height: 90upx;
    line-height: 90upx;
    font-size: 34upx;
    color: #c8c7cc;
    text-align: center;
    font-family: texticons;
    margin-right: 20upx;
  }

  .list-text {
    height: 90upx;
    line-height: 90upx;
    font-size: 34upx;
    color: #555;
    flex: 1;
    text-align: left;
  }

  .navigat-arrow {
    height: 90upx;
    width: 40upx;
    line-height: 90upx;
    font-size: 34upx;
    color: #555;
    text-align: right;
    font-family: texticons;
  }
</style>
